home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Interfaces&Libraries / Universal / Interfaces / CIncludes / GoggleSprocket.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-17  |  1.9 KB  |  96 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        GoggleSprocket.h
  3.  
  4.      Contains:    Games Sprockets: GoggleSprocket interfaces
  5.  
  6.      Version:    Technology:    Goggle Sprocket 1.1
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1996-1998 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __GOGGLESPROCKET__
  18. #define __GOGGLESPROCKET__
  19.  
  20. #ifndef __MACTYPES__
  21. #include <MacTypes.h>
  22. #endif
  23. #ifndef __EVENTS__
  24. #include <Events.h>
  25. #endif
  26.  
  27.  
  28.  
  29. #if PRAGMA_ONCE
  30. #pragma once
  31. #endif
  32.  
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif
  36.  
  37. #if PRAGMA_IMPORT
  38. #pragma import on
  39. #endif
  40.  
  41. #if PRAGMA_STRUCT_ALIGN
  42.     #pragma options align=mac68k
  43. #elif PRAGMA_STRUCT_PACKPUSH
  44.     #pragma pack(push, 2)
  45. #elif PRAGMA_STRUCT_PACK
  46.     #pragma pack(2)
  47. #endif
  48.  
  49. #if TARGET_CPU_PPC
  50. /*
  51. ********************************************************************************
  52. ** constants & data types
  53. ********************************************************************************
  54. */
  55. typedef CALLBACK_API_C( Boolean , GSpEventProcPtr )(EventRecord *inEvent);
  56. /*
  57. ********************************************************************************
  58. ** prototypes for application level calls
  59. ********************************************************************************
  60. */
  61. /* general */
  62. EXTERN_API_C( OSStatus )
  63. GSpStartup                        (UInt32                 inReserved);
  64.  
  65. EXTERN_API_C( OSStatus )
  66. GSpShutdown                        (UInt32                 inReserved);
  67.  
  68. /* configuration */
  69. EXTERN_API_C( OSStatus )
  70. GSpConfigure                    (GSpEventProcPtr         inEventProc,
  71.                                  Point *                inUpperLeft);
  72.  
  73. #endif  /* TARGET_CPU_PPC */
  74.  
  75.  
  76. #if PRAGMA_STRUCT_ALIGN
  77.     #pragma options align=reset
  78. #elif PRAGMA_STRUCT_PACKPUSH
  79.     #pragma pack(pop)
  80. #elif PRAGMA_STRUCT_PACK
  81.     #pragma pack()
  82. #endif
  83.  
  84. #ifdef PRAGMA_IMPORT_OFF
  85. #pragma import off
  86. #elif PRAGMA_IMPORT
  87. #pragma import reset
  88. #endif
  89.  
  90. #ifdef __cplusplus
  91. }
  92. #endif
  93.  
  94. #endif /* __GOGGLESPROCKET__ */
  95.  
  96.